# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年09月06日
"""
import numpy as np

a = np.random.randint(3)
print(f'随机0-3之间的整数是:{a}')
print('-'*30)
b = np.random.randint(10)
print(f'随机0-10之间的整数是:{b}')
print('-'*30)

c = np.random.randint(1,10,size=(5,))
print(f'随机1-10之间取5个元素组成一维数组{c}')
print('-'*30)

d = np.random.randint(1,20,size=(3,4))
print(f'随机1-20之间取12个元素组成二维数组:\n{d}')
print('-'*30)

e = np.random.randint(1,20,size=(2,3,4))
print(f'随机1-20之间取24个元素组成二维数组:\n{e}')
print('-'*30)
